package com.webproject.dao.householdManager;

import java.util.List;

import com.webproject.core.Page;
import com.webproject.entity.houseManager.Building;
import com.webproject.entity.houseManager.RoomInfo;
import com.webproject.entity.householdManager.Complain;
import com.webproject.entity.householdManager.HouseApproval;
import com.webproject.entity.householdManager.Household;

public interface HouseholdManagerDao {

	List<Household> queryHousehold(Page page);
	int queryHouseholdCount(Page page);
	void saveHousehold(Household household);
	void updateHousehold(Household household);
	Building queryBuildingByHousehold(String id);
	RoomInfo queryRoomByHousehold(String id);
	
	/**
	 * 验收
	 */
	List<HouseApproval> queryHouseApproval(Page page);
	int queryHouseApprovalCount(Page page);
	void saveHouseApproval(HouseApproval approval);
	void updateHouseApproval(HouseApproval approval);
	void deleteHouseApproval(HouseApproval approval);
	
	/**
	 * 投诉
	 */
	List<Complain> queryComplain(Page page);
	int queryComplainCount(Page page);
	void saveComplain(Complain complain);
	void updateComplain(Complain complain);
	void deleteComplain(Complain complain);
}
